package exceptprocess;

import java.util.Scanner;

public class ExceptionTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        int y = scanner.nextInt();

        try {
            int z = x / y;
            System.out.println(x + " / " + y + " = " + z);
        }
//        catch (ArithmeticException arithmeticException){
//            arithmeticException.printStackTrace();
//        }
        catch (RuntimeException runtimeException){
            runtimeException.printStackTrace();
        }
        finally {
            System.out.println("程序执行完毕");
        }
    }
}
